package com.ontheroad.device.model;

import java.io.Serializable;
import java.util.Date;

/**
 * 设备类
 * 
 * @author Yongtao Huang
 */
public class CentralDeviceEntity implements Serializable {

	private static final long serialVersionUID = -7077273757504216906L;
	/**  */
	private String id;
	/**
	 * 指令
	 */
	private Integer cmd;
	/**
	 * 中控编号
	 */
	private String mac;

	/**
	 * 设备ID
	 */
	private String deviceId;

	private String type;

	/**
	 * 自己是否是二级中控
	 */
	private Boolean isSub;

	/**
	 * 在一级中控的哪个通道上
	 */
	private Integer channel;
	/**
	 * 设备端口
	 */
	private Integer port;

	/**
	 * 修改时间
	 */
	private Date updateTime;

	/**
	 * 创建时间
	 */
	private Date createTime;
	/**
	 * 是否可用 (0：禁用；1：可用)
	 */
	private Boolean isEnable;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Integer getCmd() {
		return cmd;
	}

	public void setCmd(Integer cmd) {
		this.cmd = cmd;
	}

	public String getMac() {
		return mac;
	}

	public void setMac(String mac) {
		this.mac = mac;
	}

	public String getDeviceId() {
		return deviceId;
	}

	public void setDeviceId(String deviceId) {
		this.deviceId = deviceId;
	}

	public Boolean getIsSub() {
		return isSub;
	}

	public void setIsSub(Boolean isSub) {
		this.isSub = isSub;
	}

	public Integer getChannel() {
		return channel;
	}

	public void setChannel(Integer channel) {
		this.channel = channel;
	}

	public Integer getPort() {
		return port;
	}

	public void setPort(Integer port) {
		this.port = port;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Boolean getIsEnable() {
		return isEnable;
	}

	public void setIsEnable(Boolean isEnable) {
		this.isEnable = isEnable;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

}
